package com.juyu.miliao.api.dao.mysql;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.juyu.miliao.api.domain.Opinion;

@Repository
public class OpinionDao {
	@Autowired
	private SqlSession sqlSession;
	
	public int insertOpinion(Opinion entity){
		return sqlSession.insert("insertOpinion", entity);
	}

}
